﻿@model WebUI.Models.aspnet_Users
@using (Ajax.BeginForm(new AjaxOptions()
{
    LoadingElementId="OnLoadingSpan",UpdateTargetId = "DoctorListView",
    InsertionMode = InsertionMode.Replace,
    HttpMethod = "Post",
    OnSuccess = "$('#dialogbox').dialog('close');",
    OnFailure = "OnSiteError"
}))
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>管理员信息</legend>
        @Html.HiddenFor(model => model.UserId)
        @Html.HiddenFor(model => model.UserName)
        <table width="100%">
            <tr>
                <td>
                    <div class="editor-label">
                        用户名
                    </div>
                    @Html.TextBoxFor(model => model.UserName, new { disabled = true, @readonly = "readonly" })
                    <div class="editor-label">
                        密码
                    </div>
                    <div class="editor-field">
                        @Html.Password("Pwd")
                    </div>
                    <div class="editor-label">
                        确认密码
                    </div>
                   <div class="editor-field">
                        @Html.Password("Pwd2")
                    </div>
                    @Html.EditorFor(model => model.MobileAlias, "TxtField")
                </td>
            </tr>
        </table>
        <p>
            <input type="submit" value="确定" />
        </p>
    </fieldset>
}